package com.ttbj.salesman.dao;

import com.ttbj.product.bean.dto.SalesmanDto;
import com.ttbj.salesman.bean.po.Salesman;
import com.ttbj.salesman.bean.po.SalesmanExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface SalesmanMapper {
    int countByExample(SalesmanExample example);

    int deleteByExample(SalesmanExample example);

    int deleteByPrimaryKey(Long salesmanId);

    int insert(Salesman record);

    int insertSelective(Salesman record);

    List<Salesman> selectByExample(SalesmanExample example);

    Salesman selectByPrimaryKey(Long salesmanId);

    int updateByExampleSelective(@Param("record") Salesman record, @Param("example") SalesmanExample example);

    int updateByExample(@Param("record") Salesman record, @Param("example") SalesmanExample example);

    int updateByPrimaryKeySelective(Salesman record);

    int updateByPrimaryKey(Salesman record);

	SalesmanDto getUser(Salesman salesman); //查询数据

	int updateUser(Salesman trans); //更新数据
	
	void logout(Salesman trans); //登出
	
	
}